﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.master"
    AutoEventWireup="true" Inherits="Project_Attach_List" Codebehind="List.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        table#attach
        {
            width: 95%;
            margin-top: 10px;
            margin:auto;
        }
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="text-align: center; ">
        <table id="attach" cellpadding="0" cellspacing="0" class="tbl2">
            <tr>
                <th style="text-align: center">
                    序号
                </th>
                <th>
                    文件名
                </th>
                <th>
                    大小(字节)
                </th>
                <th>
                    上传时间
                </th>
                <th>上传人</th>
                <th>
                    下载
                </th>
                <th>操作</th>
                
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td style="text-align: center;">
                            <%#Eval("Index") %>
                        </td>
                        <td>
                            <a href='<%#Eval("DownloadUrl") %>'>
                                <%#Eval("Name") %></a>
                        </td>
                        <td>
                            <%#Eval("Size","{0:#,#}") %>
                        </td>
                        <td>
                            <%#Eval("InputTime","{0:d}") %>
                        </td>
                        <td>
                            <%#Eval("CreatorName") %>
                        </td>
                        <td>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("DownloadUrl") %>'>下载</asp:HyperLink>
                        </td>
                        <td><asp:HyperLink ID="lnkDelete" runat="server">删除</asp:HyperLink>&nbsp;</td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td class="empty" colspan="7" style="text-align:center">
                            没有附件
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
</asp:Content>
